<!--
 * @LastEditors: yuSeen
 * @LastEditTime: 2021-11-21 14:07:16
 * 天凉好个秋
-->
<template>
    <div class="opt">
        <el-button
            type="primary"
            v-if="index != 0"
            @click="$util.itemUp(list, index)"
            icon="el-icon-arrow-up"
            circle
        ></el-button>
        <el-button
            type="primary"
            v-if="index != list.length - 1"
            @click="$util.itemDown(list, index)"
            icon="el-icon-arrow-down"
            circle
        ></el-button>
        <el-button
            type="danger"
            @click="$util.itemDel(list, index)"
            icon="el-icon-delete"
            circle
        ></el-button>
    </div>
</template>

<script>
export default {
    name: 'attrListOptions',
    props: {
        list: {
            type: Array
        },
        index: {
            type: Number
        }
    }
}
</script>